package pers.cz.support;

import java.sql.Connection;
import java.sql.Statement;

/**
 * @program: PostGirl-panent
 * @description: 默认监听器
 * @author: Cheng Zhi
 * @create: 2023-02-24 11:20
 **/
public class DefaultDbOperatorListener implements DbOperatorListener{


    @Override
    public void beforeSelect(String sql, Connection connection, Statement statement) {
        System.out.println("-----监听到的-----" + sql);
    }

    @Override
    public void afterSelect(String sql, Connection connection, Statement statement) {
        System.out.println("-----监听到的-----" + sql);
    }

    @Override
    public void beforeInsert(String sql, Connection connection, Statement statement) {
        System.out.println("-----监听到的-----" + sql);
    }

    @Override
    public void afterInsert(String sql, Connection connection, Statement statement) {
        System.out.println("-----监听到的-----" + sql);
    }

    @Override
    public void beforeDelete(String sql, Connection connection, Statement statement) {
        System.out.println("-----监听到的-----" + sql);
    }

    @Override
    public void afterDelete(String sql, Connection connection, Statement statement) {
        System.out.println("-----监听到的-----" + sql);
    }

    @Override
    public void beforeUpdate(String sql, Connection connection, Statement statement) {
        System.out.println("-----监听到的-----" + sql);
    }

    @Override
    public void afterUpdate(String sql, Connection connection, Statement statement) {
        System.out.println("-----监听到的-----" + sql);
    }
}
